package com.example.service;

import com.example.entity.Staffs;
import com.example.entity.Village;
import com.example.result.CommonResult;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @project: smart-property
 * @description: 小区信息管理 service 层
 * @author: cjq
 * @create: 2022-11-15 10:52
 **/
public interface VillageSerivce {
    /**
     * 判断小区编号是否重复
     * @param villageNumber
     * @return
     */
    CommonResult listVillageNumber(String villageNumber);

    /**
     * 添加/修改小区信息
     * @param file
     * @param village
     * @param staffs
     * @return
     */
    int saveVillageInfo(MultipartFile[] file, Village village, Staffs staffs);

    /**
     * 小区信息列表展示
     * @return
     */
    List<Village> queryVillageInfo();

    /**
     * 删除小区信息
     * @param id
     * @return
     */
    int delVillageInfo(Integer id);
}
